import React from 'react';
import { withRouter, NavLink } from 'react-router-dom';
import styles from './header.module.css';

class Header extends React.Component {
    state = {

    };

    render() {
        return (
            <div className={styles.nav}>
                <ul>
                    <li><NavLink activeClassName={styles.active} to="/home">首页</NavLink></li>
                    <li><NavLink activeClassName={styles.active} to="/follow">关注</NavLink></li>
                    <li><NavLink activeClassName={styles.active} to="/colUmn">栏目</NavLink></li>
                </ul>
            </div>
        )
    }
}

export default withRouter(Header)